﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
class Dates
{
    private DateTime date;

    public void ParseDate(string input)
    {
        if (input == null)
        {
            throw new ArgumentNullException();
        }
        input.Trim();
        string[] formats = { "dd.MM.yyyy",
                           "dd/MM/yyyy",
                           "dd.MM.yy",
                           "dd/MM/yy"};
        date = DateTime.ParseExact(input, formats, CultureInfo.InvariantCulture.DateTimeFormat, DateTimeStyles.AllowWhiteSpaces);
    }



    static void Main(string[] args)
    {
        Dates test = new Dates();
        string input = Console.ReadLine();
        test.ParseDate(input);
        Console.WriteLine(test);
    }

    public override string ToString()
    {
        return string.Format("{0:'day'=dd, 'month'=MM, 'year'=yyyy}", date);
    }

}
